package com.appjishu.web.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("用户")
public class ScoreBoard {
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "照片地址")
    private String avatar;
    @ApiModelProperty(value = "姓名")
	private String name;
    @ApiModelProperty(value = "总分")
	private Integer score;
    @ApiModelProperty(value = "班级")
	private String className;

	
    public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public ScoreBoard(int score, Long userId) {
        this.score = score;
        this.userId = userId;
    }

    public ScoreBoard() {
    }

    @Override
    public String toString() {
        return "ScoreBoard{" +
                "score=" + score +
                ", userId=" + userId +
                '}';
    }
}

